x86/domain: factor out pv_domain_initialise
authorWei Liu <wei.liu2@citrix.com>
Fri, 7 Apr 2017 14:55:43 +0000 (15:55 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 7 Jun 2017 11:15:56 +0000 (12:15 +0100)
commit9621be12b49e3c9b33f6dc1380297259da5ebf07
tree8e1a4370f1ccbb9620116136cdc9dd8c12324d14
parent85dd07f8dee54d4947d9893d58122b8f727e6bb8
x86/domain: factor out pv_domain_initialise

Lump everything PV related in arch_domain_create into
pv_domain_initialise.

Though domcr_flags and config are not necessary, the new function is
given those to match hvm counterpart.

Since it cleans up after itself there is no need to clean up in
arch_domain_create in case of failure. Remove the initialiser of rc in
arch_domain_create.

No functional change.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain.c